<template>
  <!-- <div class="container-app" :class="header.title ? `item-padding-top` : ``"> -->
  <div class="container-app">
    <layerHeader />
    <div id="nav" class="item-nav">
      <router-link to="/">首页</router-link>
      <router-link to="/orderDetails">商品详情</router-link>
      <router-link to="/type">分类</router-link>
      <router-link to="/cart">购物车</router-link>
      <router-link to="/my">我的</router-link>
      <router-link to="/address">选择地址</router-link>
      <router-link to="/addAddress">增加地址</router-link>
      <router-link to="/allOrder">全部订单</router-link>
      <router-link to="/submitOrder">提交订单</router-link>
      <router-link to="/buySucc">购买成功</router-link>
      <router-link to="/serachProduct">搜索</router-link>
      <router-link to="/searchPage">搜索结果</router-link>
    </div>
    <router-view />
  </div>
</template>
<script>
import { mapGetters } from 'vuex'
import layerHeader from '@/components/header'
export default {
  components: {
    layerHeader
  },
  data() {
    return {}
  },
  computed: {
    ...mapGetters(['header'])
  }
}
</script>

<style lang="less">
.container-app {
  .item-nav {
    width: 100%;
    position: fixed;
    top: 0;
    // bottom: 0;
    z-index: 748943649;
    overflow: scroll;
    white-space: nowrap;
    opacity: 0.5;
    background-color: #f45050;
    * {
      padding: 3px 5px;
      color: #fff;
    }
  }
}
</style>

<style>
body {
  width: 100vw;
  margin: 0;
  overflow-x: hidden;
  font-family: "微软雅黑";
  background: #f5f6f8;
}
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
}
</style>
